package com.xzy.learn.spring.entity;

/**
 * @author xzy.xiao
 * @date 2022/6/1  11:10
 */
public class Student {
    private String id;
    private String name;
    private String remark;

    public Student() {
        System.out.println("Student::Student() is invoked");
    }

    public Student(String id, String name, String remark) {
        System.out.println("Student::Student(String,String,String) is invoked");
        this.id = id;
        this.name = name;
        this.remark = remark;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
